package com.bootdo.collection.dao;


import com.bootdo.collection.domain.SourceStationDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import java.util.List;
import java.util.Map;

@Mapper
@Component
public interface SourceStationDao {
    int add(SourceStationDO sourceStationDO);
    int remove(Integer id);
    List<SourceStationDO> list(Map<String,Object> params);
    int addStation(SourceStationDO sourceStationDO);
    int update(SourceStationDO sourceStationDO);
    SourceStationDO get(Integer id);
    int getTotal();
    //根据某个栏目id在relation列find_in_set
    List<String> getByRelation(@Param("id") int id);
    int updateRelation(SourceStationDO sourceStationDO);
    List<Integer> selectIdsByNames(@Param("programNames") List<String> programNames,@Param("stationId")int stationId);
}
